package com.lpf.back.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
//@RequestMapping("/admin")
@EnableAutoConfiguration
public class AdminIndexController {

    @RequestMapping("/gotoLogin")
    public String gotoLogin(){
        return "login";
//        ModelAndView modelAndView = new ModelAndView("redirect:/templates/login.html");
//        return modelAndView;
    }

    @RequestMapping("/index")
    public String index(){
        return "index";
    }
}
